int greenpin=10;
int yellowpin=11;
int redpin=12;
int inpin=0;//ao
int val;
float temp;
void setup()
{
pinmode(greenpin,output);
pinmode(yellowpin,output);
pinmode(redpin,output);

}
void loop()
{
val=analogread(inpin);
temp=(val/1024.0)*5*1000/10;
if(temp<=30)
	{
	digitalwrite(greenpin,high);
	digitalWrite(yellowpin,low);
	digitalwrite(redpin,low);

	}
else if(temp>30&&temp<=60)
	{
		digitalwrite(greenpin,low);
	digitalWrite(yellowpin,high);
	digitalwrite(redpin,low);

	}
else
	{
		digitalwrite(greenpin,low);
	digitalWrite(yellowpin,low);
	digitalwrite(redpin,high);
	}
delay(1000);
}
